package dya318.car;

public class Test {
    public static void main(String[] args) {
        //小汽车类
        SmallCar smallCar = new SmallCar();
        smallCar.useCar();
        smallCar.trumpet("按喇叭");

        //卡车类
        Truck truck = new Truck();
        truck.useCar();
        truck.trumpet("按喇叭");
    }
}
